package org.jash.user.webview

import android.os.Bundle
import android.webkit.WebSettings
import androidx.activity.enableEdgeToEdge
import androidx.appcompat.app.AppCompatActivity
import androidx.core.view.ViewCompat
import androidx.core.view.WindowInsetsCompat
import com.alibaba.android.arouter.facade.annotation.Route
import com.example.common.mvi.BaseViewActivity
import org.jash.user.R
import org.jash.user.databinding.ActivityWebViewYinsiactivityBinding

@Route(path = "/user/WebViewYINSIActivity")
class WebViewYINSIActivity : BaseViewActivity<ActivityWebViewYinsiactivityBinding>() {


    override fun getLayoutId(): Int {
        return R.layout.activity_web_view_yinsiactivity
    }

    override fun setupViews() {
        binding.webview.loadUrl("https://cftweb.3g.qq.com/privacy/privacyPolicy?content_id=025837093aca87b56c50816a8555e58a1104841004")
        // 配置WebView设置
        val webSettings: WebSettings = binding.webview.settings

        // 启用JavaScript（许多网页需要JS支持）
        webSettings.javaScriptEnabled = true

        // 支持缩放
        webSettings.setSupportZoom(true)
        webSettings.builtInZoomControls = true
        webSettings.displayZoomControls = false // 隐藏缩放控件
    }
}